let info = {
  name: '廖'
}
//创建异步对象
let xhr = new XMLHttpRequest()
let myAjax = function () {



  xhr.open('get', 'http://127.0.0.1:7001')

  xhr.setRequestHeader('Content-Type', 'application/json')

  xhr.send(JSON.stringify(info))

  xhr.onreadystatechange = function () {
    if (xhr.readyState == 4 && xhr.status == 200) {
      let res = xhr.responseText
      console.log(res);
    }
  }
}

myAjax()